package org.example.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class Users {
    private Integer id;
    private String headUrl;
    private Integer adminFlag;       //admin_flog
    private String password;
    private Integer status;
    private String phone;
    private String userName;
    private String account;         //账号
    private Integer departmentId;
    @TableField(exist = false) private List<Role> roleList;         //角色列表
    @TableField(exist = false) private List<Permission> permissionList ;         //权限列表
    @TableField(exist = false) private Department department;         //部门
}
